import Vue from 'vue'
import App from './App'

const InspireCloud = require('@byteinspire/js-sdk');
import Mixin from '@/static/todo/mixins';
Vue.mixin(Mixin);

Vue.config.productionTip = false

App.mpType = 'app'
const sjhServiceId = 'qc4g7t'; 
const wyhhyjServiceId = 'qcx12s';
const ghServiceId = 'qcfrym'; 
const hjServiceId = 'qczzbd';
const lynServiceId = 'qcm9it';
const ljsServiceId = "qcyxfa"

// 初始化轻服务实例
const sjhinspirecloud = new InspireCloud({
  serviceId: sjhServiceId,
});

const wyhhyjinspirecloud = new InspireCloud({
  serviceId: wyhhyjServiceId,
});

const ghinspirecloud = new InspireCloud({
  serviceId: ghServiceId,
});

const hjInspirecloud = new InspireCloud({
  serviceId: hjServiceId,
});

const lynInspirecloud = new InspireCloud({
  serviceId: lynServiceId,
});

const ljsInspirecloud = new InspireCloud({
  serviceId: ljsServiceId,
});

Vue.prototype.sjhrequest = sjhinspirecloud
Vue.prototype.wyhhyjrequest = wyhhyjinspirecloud
Vue.prototype.ghrequest = ghinspirecloud
Vue.prototype.lynRequest = lynInspirecloud;
Vue.prototype.hjRequest = hjInspirecloud;
Vue.prototype.ljsRequest = ljsInspirecloud;


sjhinspirecloud.user.loginByOAuth({
  platform:"weixinMiniProgram",
})

wyhhyjinspirecloud.user.loginByOAuth({
  platform:"weixinMiniProgram",
})

ghinspirecloud.user.loginByOAuth({
  platform:"weixinMiniProgram",
})

hjInspirecloud.user.logInByOAuth({
  platform: 'weixinMiniProgram',
});

lynInspirecloud.user.logInByOAuth({
  platform: 'weixinMiniProgram',
});

ljsInspirecloud.user.logInByOAuth({
  platform: 'weixinMiniProgram',
});


const app = new Vue({
  ...App
})

app.$mount()


